package com.youan.serve.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.youan.serve.dao.domain.SyscodeDetail;
import com.youan.serve.service.ISyscodeDetailService;
import com.youan.serve.service.ISyscodeService;
import com.youan.serve.service.ISystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @description:
 * @author: 辛晟昊
 * @time: 2020/3/13 11:21
 */
@Controller
@RequestMapping("/system")
public class SystemController {
    @Autowired
    private ISyscodeService syscodeService;
    @Autowired
    private ISyscodeDetailService syscodeDetailService;
    @Autowired
    private ISystemService systemService;

    @GetMapping("/codes/{codeName}")
    public List<SyscodeDetail> getCodes(@PathVariable String codeName){
        return systemService.getCodes(codeName);
    }




}
